package top.infopub.mgr.mgc.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.mgc.dao.PartnerInfoDao;
import top.infopub.mgr.mgc.service.PartnerInfoService;
import top.infopub.model.mgc.PartnerInfo;


@Service
public class PartnerInfoServiceImpl extends GenericServiceImpl<PartnerInfo, String> implements PartnerInfoService {

    @Autowired
    private PartnerInfoDao partnerInfoDao;

    @Override
    public GenericDao<PartnerInfo, String> getDao() {
        return partnerInfoDao;
    }

    @Override
    public void batchUpdateDelFlag(String[] checkboxId, Integer delDisable) {
        partnerInfoDao.batchUpdateDelFlag(checkboxId, delDisable);
    }

    @Override
    public boolean isCodeExist(PartnerInfo param) {
        return partnerInfoDao.isCodeExist(param) > 0;
    }

}